<form method="post" action="<?php _ctrUrl($this)?>" onsubmit="return ajax_form(this,true)">
<div class="x-list-title"> 
<table height="100%" width="100%" border="0" cellpadding="0">
<tr><td>
<h2>Tìm kiếm dự án nâng cao</h2>
</td></tr></table>
</div>
<div class="x-form-container">
<table width="100%" border="0" cellpadding="0" class="x-form">
<tr class="row-message">
	<td colspan="2">
		<div class="form-message"><?php $this->e('message');?></div>
	</td>
</tr>
<tr>
	<td class="x-form-label" valign="top">
		Từ khóa: 
	</td>
	<td class="x-form-input">
		<input type="text" name="s" style="width:300px" class="x-text" value=""/><br/>
		<div style="padding:5px 0px"><input type="checkbox" name="ct" value="yes" checked /> Tìm trong cả nội dung</div>
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		Thời gian: 
	</td>
	<td class="x-form-input">
		<input type="text" title="Kết thúc" name="date_start" onclick="date_picker(this,{format: 'd/m/Y' })" value="" class="x-text x-date"/>
		 &nbsp;&nbsp; đến &nbsp;&nbsp;
		<input type="text" title="Kết thúc" name="date_end" onclick="date_picker(this,{format: 'd/m/Y' })" value="" class="x-text x-date"/>
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		Tiến độ: 
	</td>
	<td class="x-form-input">
		<input onclick="status_picker(this)" type="text" title="Kết thúc" name="status_min" value="" class="x-text x-status"/> %
		&nbsp; đến &nbsp;&nbsp;<input onclick="status_picker(this)" type="text" name="status_max" value="" class="x-text x-status"/> %
	</td>
</tr>
<tr>
	<td class="x-form-label">
		Loại công việc: 
	</td>
	<td class="x-form-input">
		<div style="padding:5px 0px">
		<a onclick="$(this.parentNode).next('div').find('input').set('checked',true)">Chọn tất cả</a> | 
		<a onclick="$(this.parentNode).next('div').find('input').set('checked',false)">Bỏ tất cả</a>
		</div>
		<div class="section-list" style="padding:5px;background:#fff;min-width:400px;height:120px;overflow:auto;border:1px solid #ccc">
		<div class="line">
		<input type="checkbox" name="type[]" value="0" checked>&nbsp;<i style='color:green'>Không định nghĩa</i>
		</div>
		<?php foreach( $this->get('types') as $t ):?>
		<div class="line">
		<input type="checkbox" name="type[]" value="<?php _e($t['ID']);?>" checked>&nbsp;<?php _e($t['title']);?>
		</div>		
		<?php endforeach;?>	
		</div>
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		Trạng thái:
	</td>
	<td class="x-form-input">
		<select name="status" class="x-select">
			<option value="all" checked>Tất cả</option>	
			<option value="active"><?php _e(get_status('active'))?></option>	
			<option value="inactive"><?php _e(get_status('inactive'))?></option>	
			<option value="complete"><?php _e(get_status('complete'))?></option>	
			<option value="cancel"<?php _e($post['status']=='cancel' ? ' selected':'')?>><?php _e(get_status('cancel'))?></option>
		</select>	
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		Người tạo:
	</td>
	<td class="x-form-input">
		<div class="x-select-users" x-name="assigns[]" x-title="Người thực hiện"></div>
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		Người phụ trách:
	</td>
	<td class="x-form-input">
		<div class="x-select-users" x-name="users[]" x-title="Người thực hiện"></div>
	</td>
</tr>
<tr>	
	<td class="x-form-label">
		File đính kèm:
	</td>
	<td class="x-form-input">
		<input type="checkbox" size="50" name="file" value="yes"/> Có file đính kèm
	</td>
</tr>
<tr>
	<td></td>
	<td>
		<button type="submit" class="x-button x-save">Tìm kiếm</button>
		<a class="x-button x-fresh" href="#Task">Quay lại công việc</a>		
	</td>
</tr>
</table></div>
</form>